import { defineStore } from "pinia";

export const menuStore = defineStore("menu", {
    state: ()=>{
        return {
            isCollapse: false,
            breadcrump:"首页",
            menus:[]
        }
    },
    // 本地持久化储存
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'router',
                storage: localStorage
            }
        ]
    }
})